package com.epmis.epmis.Service;

import com.epmis.epmis.pojo.*;
import com.github.pagehelper.PageInfo;

import java.text.ParseException;
import java.util.HashMap;
import java.util.List;

public interface UserService {
    Enterprise getEnterpriseName(String id);

    Department getDepartmentName(int id);

    int updateUserName(String username,int userId);

    Post getPostName(int id);

    List<User> getMemberMessage(int enterprise_id);

    List<Notification> getUserReadNotification(int recipient_id);

    List<Notification> getUserUnReadNotification(int recipient_id);

    PageInfo<HashMap<String,Object>> getMissionComment(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getMissionActivity(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getSonMission(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getRelMission(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getBeforeMission(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getAfterMission(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getMissionWork(int pageCode, int pageSize, String id);

    PageInfo<HashMap<String,Object>> getMissionFile(int pageCode, int pageSize, String id);

    int updateHeadImg(String ImgName,int userId);

    int updatePassword(String newPassword,String oldPassword,String username);

    int updatePhone(String phone,int userId);

    int updateEmail(String email,int userId);

    int createProject(HashMap <String,Object> map);

    int createTarget(HashMap <String,Object> map);

    int createCost(HashMap <String,Object> map);

    int createProjectMission(HashMap <String,Object> map) throws ParseException;

    int updateNotificationStatue(int id);

    int deleteMessage(int id);

    int createExamine(HashMap<String, Object> map);

    MainPageResult getMainPageResult(int id);

    ReportResult getReportPageResult(int id);

    List<HashMap<String,Object>> getMyDoingMission(int id);

    List<HashMap<String,Object>> getMyPostponeMission(int id);

    List<HashMap<String,Object>> getDepartment(int id);

    List<HashMap<String,Object>> getPost(int id);

    List<HashMap<String,Object>> getMoveDepartment(int id);

    PageInfo<HashMap<String, Object>> getExamineComment(int pageCode, int pageSize, String id);
}
